package jchat.interfaces;

import java.io.UnsupportedEncodingException;

import org.apache.commons.httpclient.methods.multipart.ByteArrayPartSource;


public interface IAppManager {
	
	public String getUsername();
	
	public String sendMessage(String username,String tousername, String message) throws UnsupportedEncodingException;
	public String authenticateUser(String usernameText, String passwordText,String Name) throws UnsupportedEncodingException; 
	public void messageReceived(String username, String message,String type,String friendname);
//	public void setUserKey(String value);
	public boolean isNetworkConnected();
	public boolean isUserAuthenticated();
	//public boolean isUserLoggedIn();
	//public boolean checkLogin();
	public String getLastRawFriendList() throws UnsupportedEncodingException;
	public String sendcontectlist(String list);
	public void exit();
	public String signUpUser(String Mobile,String data);
	public String addNewFriendRequest(String friendUsername);
	public String sendFriendsReqsResponse(String approvedFriendNames,
			String discardedFriendNames);

	public boolean auth=false;
}
